package com.pojo;

import lombok.Data;
import org.springframework.stereotype.Controller;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Table(name = "sys_user")
@Data
@NotBlank
@Controller
public class Sys_User {
    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name = "UserId")
    private String UserId;
    @Column(name = "LoginName")
    private String LoginName;
    @Column(name = "LoginPwd")
    private String LoginPwd;
    @Column(name = "LoginTime")
    private Date LoginTime;
    @Column(name = "name")
    private String name;
    @Column(name = "headpic")
    private String headpic;

}
